!define PRODUCT_NAME "DotNetVer Tests"
!define PRODUCT_VERSION "1.1"
!define PRODUCT_PUBLISHER "NSIS"
!define PRODUCT_WEB_SITE "http://nsis.sourceforge.net/"
 
SetCompressor lzma
 
!include "LogicLib.nsh"
!include "DotNetVer.nsh"
 
Page instfiles
 
 
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
OutFile "DotNetVerTests.exe"
InstallDir "$PROGRAMFILES\Test DotNetVer"
ShowInstDetails show
 
 
Section "MainSection" SEC01
 
 ${If} ${HasDotNet1.0}
    DetailPrint "Microsoft .NET Framework 1.0 installed."
 ${EndIf}
 
 ${If} ${HasDotNet1.1}
    DetailPrint "Microsoft .NET Framework 1.1 installed."
 ${EndIf}
 
 ${If} ${HasDotNet2.0}
    DetailPrint "Microsoft .NET Framework 2.0 installed."
    ${If} ${DOTNETVER_2_0} IsDotNetServicePack 1
        DetailPrint "Microsoft .NET Framework 2.0 SP1 installed."
    ${EndIf}
    ${If} ${DOTNETVER_2_0} IsDotNetServicePack 2
        DetailPrint "Microsoft .NET Framework 2.0 SP2 installed."
    ${EndIf}
    ${If} ${DOTNETVER_2_0} IsDotNetServicePack 3
        DetailPrint "Microsoft .NET Framework 2.0 SP3 installed."
    ${EndIf}
 ${EndIf}
 
 ${If} ${HasDotNet3.0}
    DetailPrint "Microsoft .NET Framework 3.0 installed."
    ${If} ${DOTNETVER_3_0} IsDotNetServicePack 1
        DetailPrint "Microsoft .NET Framework 3.0 SP1 installed."
    ${EndIf}
    ${If} ${DOTNETVER_3_0} IsDotNetServicePack 2
        DetailPrint "Microsoft .NET Framework 3.0 SP2 installed."
    ${EndIf}
    ${If} ${DOTNETVER_3_0} IsDotNetServicePack 3
        DetailPrint "Microsoft .NET Framework 3.0 SP3 installed."
    ${EndIf}
 ${EndIf}
 
 ${If} ${HasDotNet3.5}
    DetailPrint "Microsoft .NET Framework 3.5 installed."
    ${If} ${DOTNETVER_3_5} IsDotNetServicePack 1
        DetailPrint "Microsoft .NET Framework 3.5 SP1 installed."
    ${EndIf}
    ${If} ${DOTNETVER_3_5} IsDotNetServicePack 2
        DetailPrint "Microsoft .NET Framework 3.5 SP2 installed."
    ${EndIf}
    ${If} ${DOTNETVER_3_5} IsDotNetServicePack 3
        DetailPrint "Microsoft .NET Framework 3.5 SP3 installed."
    ${EndIf}
 ${EndIf}
 
 ${If} ${HasDotNet4.0}
 
    DetailPrint "Microsoft .NET Framework 4.0 installed."
 
    ${If} ${DOTNETVER_4_0} HasDotNetClientProfile 1
       DetailPrint "Microsoft .NET Framework 4.0 (Client Profile) available."
    ${EndIf}
    ${If} ${DOTNETVER_4_0} HasDotNetFullProfile 1
       DetailPrint "Microsoft .NET Framework 4.0 (Extended Profile) available."
    ${EndIf}
 
    ${If} ${DOTNETVER_4_0} IsDotNetServicePack 1
        DetailPrint "Microsoft .NET Framework 4.0 SP1 installed."
    ${EndIf}
    ${If} ${DOTNETVER_4_0} IsDotNetServicePack 2
        DetailPrint "Microsoft .NET Framework 4.0 SP2 installed."
    ${EndIf}
    ${If} ${DOTNETVER_4_0} IsDotNetServicePack 3
        DetailPrint "Microsoft .NET Framework 4.0 SP3 installed."
    ${EndIf}
 
 ${EndIf}
 
SectionEnd